﻿using System;
using Newtonsoft.Json;

namespace ChinaTax.LeQi
{
    public class QueryInvoiceUploadResultRequest : Request<QueryInvoiceUploadResultResponse>
    {
        public QueryInvoiceUploadResultRequest()
        {
            ServiceCode = "CXQDFPSCJG";
        }

        [JsonProperty("nsrsbh")]
        public string TaxNo { get => LeQiConfig.TaxNo; }

        [JsonProperty("sllsh")]
        public string No { get; set; }
    }

    public class QueryInvoiceUploadResultResponse : Response
    {
        [JsonProperty("fphm")]
        public string InvoiceCode { get; set; }

        [JsonProperty("status")]
        public string Status { get; set; }

        [JsonProperty("message")]
        public string Message { get; set; }

        [JsonProperty("Code")]
        public string Code { get; set; }

        [JsonProperty("yxzwsyed")]
        public string DownUnusedQuota { get; set; }

        [JsonProperty("sq")]
        public string Month { get; set; }
    }

}
